<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui">
    <f:view beforePhase="#{reportManagerBean.initGenerateReport}">
        <h:head>
            <title>Add New Stakeholder</title>
            <style type="text/css">
                .gritter-notice-wrapper {
                    left:200px;
                    top: 50px;
                }
            </style>
        </h:head>
        <h:body>
            <h:form id="formMain">
                <h1>MyPrimeFacesOrganizer - Powered by PrimeFaces 2.2.1</h1>
                <p:menubar autoSubmenuDisplay="true">
                    <p:submenu label="Stakeholder Management">
                        <p:menuitem value="Add Stakeholder" url="TCubeAddStakeholder.xhtml" />
                        <p:menuitem value="View All" url="TCubeViewAllStakeholder.xhtml" />
                        <p:menuitem value="Edit Info" url="TCubeEditStakeholderInfo.xhtml" />
                    </p:submenu>

                    <p:submenu label="Service Plan">
                        <p:submenu label="Service">
                            <p:menuitem value="Add Service" url="TCubeAddService.xhtml" />
                            <p:menuitem value="View All" url="TCubeViewAllService.xhtml" />
                            <p:menuitem value="Edit Info" url="TCubeEditServiceInfo.xhtml" />
                        </p:submenu>

                        <p:submenu label="Service Package">
                            <p:menuitem value="Add Package" url="TCubeAddServicePackage.xhtml" />
                            <p:menuitem value="View All" url="TCubeViewAllServicePackage.xhtml" />
                            <p:menuitem value="Edit Info" url="TCubeEditServicePackageInfo.xhtml" />
                        </p:submenu>
                    </p:submenu>
                </p:menubar>  
                <br/>
                <p:panel id="panel" header="Generate Bill">
                    <p:ajaxStatus style="width:16px;height:16px;">
                        <f:facet name="start">
                            <h:graphicImage value="http://www.primefaces.org:8080/showcase/design/ajaxloading.gif" />
                        </f:facet>
                        <f:facet name="complete">
                            <h:outputText value="" />
                        </f:facet>
                    </p:ajaxStatus>
                    <p:messages />
                    <p:commandButton id="btn" value="Create Bill" update="panel" actionListener="#{reportManagerBean.testCreateBill}" ajax="true" />
                </p:panel>
            </h:form>
            <h:form id="form2"> 
                <br/>
                <p:panel id="panel2" header="Download Bill">
                    <a href="report/reportBill.pdf">Download</a>
                </p:panel>
            </h:form>
            
        </h:body>
    </f:view>
</html>
